package com.shruijin.wy.aop.config;

import com.shruijin.wy.aop.advice.ActionAdvice;
import com.shruijin.wy.aop.service.UserActionTest;
import com.shruijin.wy.aop.service.impl.UserActionTestImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AopConfig {

    @Bean(name = "userAction")
    public UserActionTest initUserTestAction(){
        UserActionTest userActionTest = new UserActionTestImpl();
        return userActionTest;
    }

    @Bean(name="actionAdvice")
    public ActionAdvice initActionAdvice(){
        ActionAdvice actionAdvice = new ActionAdvice();
        return actionAdvice;
    }
}
